This bean can be used in several cases. Following example is one of them.
MAIN.C
PIMAGE img; /* PIMAGE is defined in PE_Types.h */
uint16_t size;
void main(void)
{
/* Get pointer to a structure describing an image */
img = Cim1_GetImage();
size = img->size; /* Gets size of an image */
...
}
For more about typical usage of the bean code please refer to the page Bean Code Typical Usage.